<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
    <title>BOOKING HISTORY</title>
</head>
<body bgcolor= "#FFFACD">
<IMG SRC = "http://image.ohozaa.com/i/d29/bMY7Wm.jpg" width = "100%" height = "200" border="3"><p>
	<center>
	<a href="http://localhost:8000/user_profile/">profile</a>
	&nbsp;&nbsp;/&nbsp;&nbsp;
	<a href="http://localhost:8000/booking/">booking</a>
	&nbsp;&nbsp;/&nbsp;&nbsp;
	booking_history
	&nbsp;&nbsp;/&nbsp;&nbsp;
	<a href="http://localhost:8000/report_error/">report error by user</a>
	&nbsp;&nbsp;/&nbsp;&nbsp;
	<a href="http://localhost:8000/log_out/">log out</a>
	<form action="/booking_history/" method="POST">
	{% csrf_token %}	
		
	 		<table width="500" border="1">
			<td><center>PERSON ID</center>
			<td><center>COMPUTER ID</center>
			<td><center>DATE</center>
			<td><center>TIME</center></tr>
			{% for com in computer %}
			<td><center>{{ com.register}}</center></td>
			<td><center>{{ com.computer}}</center></td>
			<td><center>{{ com.Date}}</center></td>
			<td><center>{{ com.Time}}</center></td>
			<input type="hidden"  name="com_register" value = "{{ com.register}}">
			<input type="hidden"  name="com_computer" value = "{{ com.computer}}">
			<input type="hidden"  name="com_date" value = "{{ com.Date}}">
			<input type="hidden"  name="com_time" value = "{{ com.Time}}">
			<td><center><input type="submit" value="Delete"></center></td>
			</tr>
		{% endfor %}
	 </TABLE>
	 </form>
	 </center>
</body>
</html>